package service.genetic;

public class ChooseService<T> {

	private int _individuals;
	private T[] _array;
	
	
	public ChooseService(T[] array){
		_individuals = array.length;
		_array = array;
	}
	
	public T getOne(){
		int id  = 0;
		double random = Math.random();
		
		
		double f = Math.tanh((random-2))+1;
		
		return _array[id];	
	}
}
